package com.ys.enume.storage;

public class TccAllocateEnum {
	
	public enum Type {
		JING_PIN("精品调拨", 1), PU_PIN("普通调拨", 2);
		public String name;
		public Integer value;

		private Type(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (Type e : Type.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
}
